
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGSlices.h>
#include <OpenSG/OSGSlicesBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Slices_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_Slices()
{
    scope* osg_SlicesBase_scope = new scope(
    class_< osg::SlicesBase, bases< osg::MaterialDrawable > , boost::noncopyable >("SlicesBase", no_init)
//        .def_readonly("SizeFieldMask", &osg::SlicesBase::SizeFieldMask)
//        .def_readonly("SliceDistanceFieldMask", &osg::SlicesBase::SliceDistanceFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::SlicesBase::MTInfluenceMask)
        .def("getClassType", &osg::SlicesBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::SlicesBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::SlicesBase::*)() )&osg::SlicesBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::SlicesBase::*)() const)&osg::SlicesBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::SlicesBase::getContainerSize)
        //.def("getSize", (osg::Vec3f& (osg::SlicesBase::*)() )&osg::SlicesBase::getSize, return_value_policy< copy_const_reference >())
        .def("getSize", (const osg::Vec3f& (osg::SlicesBase::*)() const)&osg::SlicesBase::getSize, return_value_policy< copy_const_reference >())
        //.def("getSliceDistance", (osg::Real32& (osg::SlicesBase::*)() )&osg::SlicesBase::getSliceDistance, return_value_policy< copy_const_reference >())
        .def("getSliceDistance", (const osg::Real32& (osg::SlicesBase::*)() const)&osg::SlicesBase::getSliceDistance, return_value_policy< copy_const_reference >())
        .def("setSize", &osg::SlicesBase::setSize)
        .def("setSliceDistance", &osg::SlicesBase::setSliceDistance)
        .def("getBinSize", &osg::SlicesBase::getBinSize)
        .def("copyToBin", &osg::SlicesBase::copyToBin)
        .def("copyFromBin", &osg::SlicesBase::copyFromBin)
        .def("create", &osg::SlicesBase::create)
        .def("createEmpty", &osg::SlicesBase::createEmpty)
        .def("shallowCopy", &osg::SlicesBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("SizeFieldId") = (int)osg::SlicesBase::SizeFieldId;
    scope().attr("SliceDistanceFieldId") = (int)osg::SlicesBase::SliceDistanceFieldId;
    scope().attr("NextFieldId") = (int)osg::SlicesBase::NextFieldId;

    delete osg_SlicesBase_scope;

    class_< osg::Slices, bases< osg::SlicesBase > , boost::noncopyable, osg::SlicesRefPtr >("Slices", no_init)
        .def("drawPrimitives", &osg::Slices::drawPrimitives)
        .def("intersect", &osg::Slices::intersect)
        .def("adjustVolume", &osg::Slices::adjustVolume)
        .def("setMaterial", &osg::Slices::setMaterial)
        .def("changed", &osg::Slices::changed)
        .def("dump", &osg::Slices::dump, osg_Slices_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::SlicesPtr>();
    implicitly_convertible<osg::SlicesRefPtr, osg::SlicesPtr>();
    implicitly_convertible<osg::SlicesPtr, osg::MaterialDrawablePtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::SlicesPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::SlicesPtr>);
}

